
public class Homework_603_7 {
	public static void main(String[] args) {
		// 7：输出比10000大的10个质数
		for (int i = 10001, j = 1; j < 10; i++) {
			boolean isExit = true;
			for (int k = 2; k < 10; k++) {
				if (i%k==0) {
					isExit=false;
					break;
				}
			}
			if (isExit) {
				System.out.println(i);
				j++;
			}
		}
	}
}
